﻿using System;
using System.Text;
using eLongLoginTest.com.elong.gaia.agent.Air_Login;

namespace eLongLoginTest
{
    public static class LoginExtend
    {
        /// <summary>
        /// 封装并重载已有的LOGIN方法
        /// </summary>
        /// <param name="client">扩展方法第一个参数</param>
        /// <param name="user">用户名</param>
        /// <param name="pass">密码</param>
        /// <returns>返回码，-109为用户名或密码错误</returns>
        public static string Login(this Air_Login client,string user,string pass)
        {
            string result = client.Login("<root><user>totso</user><password>RTZDQ0EzRTNERjVENjMwODZDMTJCRUI5QURDRDdCMDU=</password></root>");
            return result;
        }
    }
}
